from django.db import models

class User(models.Model):
    u_name = models.CharField(max_length=32,unique=True)
    u_pwd = models.CharField(max_length=100)
    u_type = models.IntegerField(default=0) # 0---商家用户  1---普通用户
class goods_types(models.Model):
    gt_name = models.CharField(max_length=32,unique=True)
    gt_picture = models.FileField(upload_to='image')
